import request from '@/utils/request'

// 查询年度计划明细列表
export function listInvestPlanAnnualPlan(query) {
  return request({
    url: '/annualPlan/investPlanAnnualPlan/list',
    method: 'get',
    params: query
  })
}

// 查询年度计划明细详细
export function getInvestPlanAnnualPlan(id) {
  return request({
    url: '/annualPlan/investPlanAnnualPlan/' + id,
    method: 'get'
  })
}

// 保存年度计划明细
export function saveInvestPlanAnnualPlan(data) {
  return request({
    url: '/annualPlan/investPlanAnnualPlan/save',
    method: 'post',
    data: data
  })
}

// 删除年度计划明细
export function delInvestPlanAnnualPlan(id) {
  return request({
    url: '/annualPlan/investPlanAnnualPlan/' + id,
    method: 'delete'
  })
}

// 导出年度计划明细
export function exportInvestPlanAnnualPlan(query) {
  return request({
    url: '/annualPlan/investPlanAnnualPlan/export',
    method: 'get',
    params: query
  })
}
